package com.tiny_wind.tiny_wind_diary.service.impl;


import com.tiny_wind.tiny_wind_diary.dao.DiaryUnitDao;
import com.tiny_wind.tiny_wind_diary.dao.KnowledgeCategoryDao;
import com.tiny_wind.tiny_wind_diary.entity.DiaryUnitEntity;
import com.tiny_wind.tiny_wind_diary.entity.KnowledgeCategoryEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KnowledgeCategoryServiceImpl {

//	private Logger logger = LoggerFactory.getLogger(this.getClass());

	// 注入Service依赖
	@Autowired
	private KnowledgeCategoryDao mDao;


	public KnowledgeCategoryEntity[] search(KnowledgeCategoryEntity filter) {
		KnowledgeCategoryEntity[] entity = mDao.search(filter);
		return entity;
	}

	
	public void update(KnowledgeCategoryEntity entity) {
		mDao.update(entity);
	}

	public void insert(KnowledgeCategoryEntity entity) {
		mDao.insert(entity);
	}


	public void delete(KnowledgeCategoryEntity entity) {
		mDao.delete(entity);
	}
}
